import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

///
/// @DIR_PATH：lib/base
/// @TIME：2023/11/10 15:09
/// @AUTHOR：starr
/// 弹窗基类
abstract class PopBaseState<T extends StatefulWidget> extends State<T> {
  @override
  void initState() {
    super.initState();
    //状态栏全透明沉浸
    SystemUiOverlayStyle systemUiOverlayStyle =
    const SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }

  @override
  void dispose() {
    super.dispose();
    SystemChrome
        .setEnabledSystemUIMode([SystemUiOverlay.top, SystemUiOverlay.bottom] as SystemUiMode);
  }
}
